import './index.scss';
import CONSTANT from '@/common/constants.js';
import http from '@/common/http.js';
export default {
  data () {
    return {
      userId: '',
      list: {
        day: '',
        month: '',
        number: '',
        totalMoney: '',
        userName: '',
        year: ''
      }
    }
  },
  mounted () {
    this.userId = window.sessionStorage.getItem('userId')
    http.post(CONSTANT.DONATECERTIFICATE, {userId: this.userId}, (res) => {
      console.log(res)
      if (res.code == 200) {
        this.list = res.obj[0]
      }
    })
  },
  methods: {
    comeBack () {
      window.history.back()
    }
  }
}
